import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {

    public static long func (long num) {
        long cnt = 0;

        for (long i = 1; i <= num; i++) {
            if (num % i == 0) {
                cnt++;
            }
        }

        // System.out.println(cnt);
        return cnt;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        
        int n = in.nextInt();
        int k = in.nextInt();
        int[] arrs = new int[n];

        long multi = 1;

        for (int i = 0; i < n; i++) {
            arrs[i] = in.nextInt();

            multi *= arrs[i];
        }

        int ret1 = 0;
        int ret2 = 0;

        long funcMulti = func(multi);

        if (funcMulti > k) {
            if (multi % 2 != 0) {
                ret1 = ret2 = 0;
            }
            else {
                long thresh = funcMulti - k;
                long temp = funcMulti;
                while (Math.abs(func(multi/2) - k) < thresh) {
                    multi /= 2;
                    thresh = Math.abs(func(multi/2) - k);
                    ret2++;
                }
            }
        }
        else if (funcMulti < k){
            long thresh = k - funcMulti;
            long temp = funcMulti;
            while (Math.abs(func(multi*2) - k) < thresh) {
                multi *= 2;
                thresh = Math.abs(func(multi) - k);
                ret1++;

                // System.out.println("temp : " + func(multi));
            }
        }

        System.out.println(ret1 + " " + ret2);
    }
}